﻿using System.IO;
using System.Reflection;
using NUnit.Framework;

namespace HtmlDeploy.Test
{
    [TestFixture]
    public class ScriptFixture
    {
        private string combine;

        [TestFixtureSetUp]
        public void Setup()
        {
            var rootPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var s = new Script(rootPath + @"\data\html\index.html");

            combine = s.Process();
        }

        [Test]
        public void IncludesAll()
        {
            Assert.That(combine.Contains("jQuery"));
            Assert.That(combine.Contains("innerJs"));
            Assert.That(combine.Contains("inlineJs"));
        }
    }
}
